Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masked input with imask.js #118

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

simonbuehler
Copy link
Contributor

hi,

learned that commiting fixes to master is a bad idea, this is a extra branch replacing #111 pull request


first shot at the integration of imask.js ( https://imask.js.org/ ) into the input field, works for me

Input::make('datemasked')->maskOptions(
                "{mask: Date, lazy: false}"
            )

Input::make('Masktest', 'masktest')->rules('required')->maskOptions(
                    "{mask: '(00)00-00-00',  lazy: false,  placeholderChar: 'x' }"
                ),

possible enhancements:

  • Get either the masked or unmasked value back from the imask object and not the input value
  • make including js configurabe
  • add docs ;)

should fix the unneeded  js load

(cherry picked from commit 19dcea6)
(cherry picked from commit b741c05)
# Conflicts:
#	resources/views/components/input.blade.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant